package com.bawei.yangzongcai___day2.MaiDongFangHong.day4;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ImageView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.bawei.yangzongcai___day2.R;
import com.bumptech.glide.Glide;
@Route(path = "/tiao4/dongfanghong4")
public class MaiDongFangHong4 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mai_dong_fang_hong4);
        String url = "https://www.4kbizhi.com/d/file/2021/07/30/small081959v5cdL1627604399.jpg";

        // 原图处理成圆角.
        // 如果是四周都是圆角则是RoundedCornersTransformation.CornerType.ALL
        ImageView image = findViewById(R.id.xian);
//        Glide.with(this)
//                .load(url)
//                .circleCrop()
//                .into(image);

        CliedTool.GlideRadius(this,url,image);

    }


}
